<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fadeIn(), fadeOut() and fadeTo(), par Mkyong - http://www.mkyong.com</title>
<script type="text/javascript" src="../jquery-1.11.0.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#fadeout").click(function() {
			$(this).fadeOut("slow");
		});
		$("#fadein").click(function() {
			$(this).hide().fadeIn(2000);
		});
		$("#fadeto").click(function() {
			$(this).fadeTo("fast", 0.2);
		});
		$("#reset").click(function() {
			$(this).click(function() {
				location.reload();
			});
		});
	});
</script>
</head>
<body>
	<h1>fadeOut(), fadeIn() and fadeTo()</h1>
	<div>
		<h3>Fade out :</h3>
		<div id="fadeout">click !!!</div>
	</div>
	<div>
		<h3>Fade in :</h3>
		<div id="fadein">click !!!</div>
	</div>
	<div>
		<h3>Fade to :</h3>
		<div id="fadeto">click !!!</div>
	</div>
	<div>
		<h3>Reset :</h3>
		<div><button id="reset">Reset</button></div>
	</div>
	<br><a href="index.jsp">retour</a>
</body>
</html>